<template>
  <div class="test">
    <p @click="getUser" class="test-color test-font testaaa">这是pc端首页</p>
  </div>
</template>
<script setup>
const { proxy } = getCurrentInstance()

console.log(proxy.$Util.isMobile())

// 模拟接口请求
const getUser = async () => {
  const res = await proxy.$Http.get('/mock/getUser')
  console.log('接口请求返回数据:', res)
}

console.log('环境：', import.meta.env.VITE_APP_API_BASE_URL)
</script>
<style>
.testaaa {
  width: 200px;
}
</style>
